#include"common.h"


int main()
{
  key_t Key = ftok(PATH_NAME,KEY_ID);
  //获取创建共享内存
  int shmid = shmget(Key,4096,IPC_CREAT) ; 
  char* s = (char*)shmat(shmid,NULL,0);
  char a = 'a';
  while(a <= 'z')
  {
    s[a - 'a'] = a;
    a ++;
    sleep(1);
  }

  shmdt(s);
  return 0;

}
